Skip to content

Conversation

@isihin-3
Copy link
Contributor

@isihin-3 isihin-3 commented Nov 26, 2025

Summary

Added Tests for LibNonReentrancy and took coverage to 100%

Changes Made

  • New File Made LibNonReentrancyHarness.sol and LibNonReentrancy.t.sol
  • Improved Revert on src/libraries/LibNonReentrancy.sol
  • Added vm.assume(to != address(0)); in testFuzz_Mint file : test/token/ERC6909/ERC6909/ERC6909Facet.t.sol:ERC6909FacetTest now all test are passing earlier it was failing

Checklist

Before submitting this PR, please ensure:

  • Code follows the Solidity feature ban - No inheritance, constructors, modifiers, public/private variables, external library functions, using for directives, or selfdestruct

  • Code follows Design Principles - Readable, uses diamond storage, favors composition over inheritance

  • Code matches the codebase style - Consistent formatting, documentation, and patterns (e.g. ERC20Facet.sol)

  • Code is formatted with forge fmt

  • Existing tests pass - Run tests to be sure existing tests pass.

  • New tests are optional - If you don't provide tests for new functionality or changes then please create a new issue so this can be assigned to someone.

  • All tests pass - Run forge test and ensure everything works

  • Documentation updated - If applicable, update relevant documentation
    [TESTING] Add test for LibNonReentrancy #216

@netlify
Copy link

netlify bot commented Nov 26, 2025

👷 Deploy request for compose-diamonds pending review.

Visit the deploys page to approve it

Name Link
🔨 Latest commit 7fb7092

@github-actions
Copy link

Coverage Report

Coverage

Metric Coverage Details
Lines 82% 1776/2154 lines
Functions 86% 338/394 functions
Branches 69% 253/368 branches

Last updated: Wed, 26 Nov 2025 19:25:47 GMT for commit 7fb7092

@mudgen
Copy link
Contributor

mudgen commented Nov 27, 2025

@isihin-3 Thank you!

@mudgen mudgen merged commit f88a157 into Perfect-Abstractions:main Nov 27, 2025
3 of 5 checks passed
@isihin-3 isihin-3 deleted the test/Non-Reentrancy-tests-added branch November 27, 2025 01:20
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants